<template>
  <div class="dashboard-container">
    <div v-for="(item, index) in dictData" :key="index">{{ item | statusFilter }}</div>
  </div>
</template>
<script>
export default {
  dicts: ["sys_dict"],
  filters: {
    statusFilter(status) {
      const statusMap = {
        1: "待启用",
        2: "已启用",
        3: "已停用"
      };
      return statusMap[status];
    }
  },
  data() {
    return {
      dictData: [1, 2, 3]
    };
  }
};
</script>
